
//
//  NewsPlayerView.m
//  Fireball
//
//  Created by 俞渊华 on 2017/12/14.
//  Copyright © 2017年 俞渊华. All rights reserved.
//

#import "NewsPlayerView.h"

@implementation NewsPlayerView

-(instancetype)initWithFrame:(CGRect)frame{
    if ([super initWithFrame:frame]) {
        self.backgroundColor = [UIColor blackColor];
    }
    return self;
}


-(void)layoutSubviews{
    [super layoutSubviews];
}
-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
    UIView * view = [super hitTest:point withEvent:event];
    if (!view) {
        for (UIView * subView in self.subviews) {
            CGPoint subPoint = [subView convertPoint:point toView:self];
            if (CGRectContainsPoint(subView.bounds, subPoint)) {
                view = subView;
            }
        }
    }
    return view;
}
-(void)drawRect:(CGRect)rect{
    [super drawRect:rect];
}
-(void)dealloc{
    NSLog(@"dealloc");
}

@end
